﻿using System.Web;
using System.Web.Optimization;

namespace Mysoft.MyCM.Web
{
	public class BundleConfig
	{
		// 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
		public static void RegisterBundles(BundleCollection bundles)
		{
			#region 公共
			// jQuery
			bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
				"~/Content/js/vendor/jquery-{version}.js"));

			// Boilerplate Bootstrap & Custom
			bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
				"~/Content/js/modernizr-2.8.3.js"
				));
			bundles.Add(new ScriptBundle("~/bundles/response").Include(
				"~/Content/js/vendor/html5shiv.js",
				"~/Content/js/vendor/respond.js"
				));
			bundles.Add(new StyleBundle("~/Content/css/main").Include(
				"~/Content/css/normalize.css",
				"~/Content/css/bootstrap.css",
				"~/Content/css/bootstrap-datetimepicker.css",
				"~/Content/css/bootstrap-switch.css",
				"~/Content/css/scojs.css",
				"~/Content/css/font-awesome.css",
				"~/Content/css/buttons.css",
				"~/Content/css/sitelayout.css"
				));
			bundles.Add(new ScriptBundle("~/bundles/main").Include(
				"~/Content/js/vendor/bootstrap.js",
				"~/Content/js/vendor/bootstrap-datetimepicker.js",
				"~/Content/js/vendor/bootstrap-switch.js",
				"~/Content/js/vendor/knockout-3.3.0.js",
				"~/Content/js/vendor/sco.tooltip.js",
				"~/Content/js/vendor/json2.js",
				"~/Content/js/vendor/helper.js",
				"~/Content/js/vendor/jquery.pin.js",
				"~/Content/js/sitemain.js"
				));
			#endregion

			bundles.Add(new StyleBundle("~/Content/site/css").Include(
				"~/Content/site/dashboard.css",
				"~/Content/site/customer.css",
				"~/Content/site/scm.css",
				"~/Content/site/rptcm.css",
				"~/Content/site/cscm.css"
				));

			bundles.Add(new ScriptBundle("~/bundles/site/js").Include(
				"~/Content/site/dashboard.js",
				"~/Content/site/customer.js",
				"~/Content/site/scm.js",
				"~/Content/site/rptcm.js",
				"~/Content/site/cscm.js"
				));
		}
	}
}
